package com.hnas.common.domain;

import java.util.HashMap;
import java.util.Map;

public class CommonStatus {

	public static final int FAIL = 0;
	public static final int SUCCESS = 1;

	private static Map<Integer, String> map = new HashMap<Integer, String>();
	static {
		map.put(FAIL, "失败");
		map.put(SUCCESS, "成功");
	}

	public static String getCommonStatusString(Integer status) {
		return map.get(status);
	}

	public static Map<Integer, String> getCommonStatusMap() {
		return map;
	}
}
